#include "MyShellException.h"

mysh::GrammarException::GrammarException(const std::string& message): errorMessage(message)
{
}

const char* mysh::GrammarException::what() const noexcept
{
    return this->errorMessage.c_str();
}

mysh::ExecutorException::ExecutorException(const std::string& message): errorMessage(message)
{
}

const char* mysh::ExecutorException::what() const noexcept
{
    return this->errorMessage.c_str();
}